package com.power.flowable.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 *  历史的流程实例实体类
 */

@Data
@EqualsAndHashCode(callSuper = false)
@Component
public class Act_hi_actinst {

    private static final long serialVersionUID = 1L;

    private String id_;

    @ApiModelProperty(value = "版本号")
    private Integer rev_;

    @ApiModelProperty(value = "流程定义id")
    private String proc_def_id_;

    @ApiModelProperty(value = "流程实例id")
    private String proc_inst_id_;

    @ApiModelProperty(value = "执行实例id")
    private String execution_id_;

    @ApiModelProperty(value = "节点id")
    private String act_id_;

    @ApiModelProperty(value = "任务id")
    private String task_id_;

    @ApiModelProperty(value = "外部流程实例id")
    private String call_proc_inst_id_;

    @ApiModelProperty(value = "节点名称")
    private String act_name_;

    @ApiModelProperty(value = "节点类型")
    private String act_type_;

    @ApiModelProperty(value = "节点签收人")
    private String assignee_;

    @ApiModelProperty(value = "开始时间", example="2020-10-22 10:03:22")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date start_time_;

    @ApiModelProperty(value = "结束时间", example="2020-10-22 10:03:22")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date end_time_;

    @ApiModelProperty(value = "交易单")
    private Integer transaction_order_;

    @ApiModelProperty(value = "耗时")
    private String duration_;

    @ApiModelProperty(value = "删除原因")
    private String delete_reason_;

    @ApiModelProperty(value = "租户id")
    private String tenant_id_;

}